#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int Choose(int arr[],int len)
{
	for (int i = 0; i < len-1; i++)
	{
		for (int j = i + 1; j < len; j++) 
		{
			if (arr[i] > arr[j])
			{
				int temp = arr[i];
				arr[i] = arr[j];
				arr[j] = temp;
			}
		}
		printf("%d\n",arr[i]);
	}
}
int main()
{
	int arr[] = { 2,3,4,1,5,6,7,8,9 };
	int len = sizeof(arr) / sizeof(int);
	Choose(arr, len);
	return 0;
}